package com.mlf.observer.spring;

import org.springframework.context.ApplicationEvent;

//1. 用户注册事件
public class UserRegisteredEvent extends ApplicationEvent {

    private String username;
    private String email;
    public UserRegisteredEvent(Object source, String username, String email) {
        super(source);
        this.username = username;
        this.email = email;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
